package com.deke.course.service;

import com.deke.entity.TbShoucangCourse;
import com.deke.vo.Result;
import org.apache.ibatis.annotations.Select;

import javax.servlet.http.HttpServletRequest;

/**
 * @author ：ludi
 * @date ：Created in 2022/12/28 13:28
 * @description：
 * @modified By：
 * @version:
 */
public interface CourseShouCangService {

    @Select(value = "select *\n" +
            "from tb_shoucang_course join tb_member tm on tb_shoucang_course.member_id = tm.id join edu_course_collect ecc on tb_shoucang_course.course_id = ecc.id where tb_shoucang_course.id=1408411836083986433 & ecc.is_deleted=0;")
    Result findFavoriteCourse();

    Result addFavoritescourse(HttpServletRequest request, TbShoucangCourse tbShoucangCourse);
}